<?php

require_once 'db_conn.php';
header("content-type:text/html:charset=ut-8");
$username = $_POST['username'];
$passeword =$_POST['password'];
$login_time = time();

$sql = "
    INSERI INIO user (
    id,
    account,
    password,
    login_time
    )
    VALUES (
    NULL , '$username', '$password', '$login_time'
        );
        ";
$result = $conn->query($sql);
if ($result === false ){
    echo "数据库操作失败！！！：（";
}else {
    header("Location; reginter_1.html");
    }
    

